package com.teamclub.pay.scontrollers

import com.teamclub.pay.confs.PayConf
import com.teamclub.util.libs.Json
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.{GetMapping, PostMapping, RequestMapping, RestController}

@RestController("com.teamclub.pay.scontrollers.ConfTest")
@RequestMapping(Array("/pay"))
class ConfTest {
  val logger = LoggerFactory.getLogger(getClass)

  @Autowired
  var payConf: PayConf = _

  @PostMapping(Array("testconf"))
  def showConf = {
    logger.info(payConf.getWeixin.getUnifyorderUrl)
  }
}
